/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.persistencia.domain;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author kenny
 */
@Embeddable
public class DocentexcicloPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "nDcnId")
    private int nDcnId;
    @Basic(optional = false)
    @Column(name = "nCicId")
    private int nCicId;

    public DocentexcicloPK() {
    }

    public DocentexcicloPK(int nDcnId, int nCicId) {
        this.nDcnId = nDcnId;
        this.nCicId = nCicId;
    }

    public int getNDcnId() {
        return nDcnId;
    }

    public void setNDcnId(int nDcnId) {
        this.nDcnId = nDcnId;
    }

    public int getNCicId() {
        return nCicId;
    }

    public void setNCicId(int nCicId) {
        this.nCicId = nCicId;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) nDcnId;
        hash += (int) nCicId;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof DocentexcicloPK)) {
            return false;
        }
        DocentexcicloPK other = (DocentexcicloPK) object;
        if (this.nDcnId != other.nDcnId) {
            return false;
        }
        if (this.nCicId != other.nCicId) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.persistencia.domain.DocentexcicloPK[ nDcnId=" + nDcnId + ", nCicId=" + nCicId + " ]";
    }
    
}
